/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const financeRouter = {
  path: '/finance',
  component: Layout,
  redirect: 'noRedirect',
  name: '资金',
  hidden:true,
  meta: {
    title: '资金',
    icon: 'money'
  },
  children: [
    {
      path: 'main',
      component: () => import('@/views/finance/main'),
      name: '资金',
      meta: { title: '资金' }
    },
    {
      path: 'start',
      component: () => import('@/views/finance/bootstrap'),
      name: '资金',
      meta: { title: '资金' }
    },
    {
      path: 'account',
      component: () => import('@/views/finance/account/account'),
      name: '账户',
      hidden:true,
      meta: { title: '账户'}
    },
    {
      path: 'withdraw',
      component: () => import('@/views/finance/withdraw/main'),
      name: '取款',
      hidden:true,
      meta: { title: '取款' }
    },
    {
      path: 'deposit',
      component: () => import('@/views/finance/deposit/main'),
      name: '存款',
      hidden:true,
      meta: { title: '存款'}
    },
    {
      path: 'revenue',
      component: () => import('@/views/finance/revenue/main'),
      name: '收入',
      hidden:true,
      meta: { title: '收入' }
    },
    {
      path: 'expenses',
      component: () => import('@/views/finance/expenses/main'),
      name: '支出',
      hidden:true,
      meta: { title: '支出'}
    },
    {
      path: 'expenses-add',
      component: () => import('@/views/finance/expenses/expenses-add'),
      name: '支出',
      hidden:true,
      meta: { title: '支出'}
    },
    {
      path: 'expenses-detail',
      component: () => import('@/views/finance/expenses/expenses-detail'),
      name: '支出',
      hidden:true,
      meta: { title: '支出'}
    },
    {
      path: 'subject',
      component: () => import('@/views/finance/subject/main'),
      name: '科目',
      hidden:true,
      meta: { title: '科目'}
    },
    {
      path: 'flowing',
      component: () => import('@/views/finance/flowing'),
      name: '资金流水',
      hidden:true,
      meta: { title: '资金流水' }
    },
    {
      path: 'delivery',
      component: () => import('@/views/finance/delivery/delivery'),
      name: '资金流水',
      hidden:true,
      meta: { title: '资金流水' }
    },
    {
      path: 'capital',
      component: () => import('@/views/finance/capital/company'),
      name: '资产',
      hidden:true,
      meta: { title: '资产' }
    },
    {
      path: 'capital-detail',
      component: () => import('@/views/finance/capital/company-detail'),
      name: '资产',
      hidden:true,
      meta: { title: '资产' }
    },
    {
      path: 'industry',
      component: () => import('@/views/finance/industry/main'),
      name: '行业',
      hidden:true,
      meta: { title: '行业' }
    },
    {
      path: 'futures',
      component: () => import('@/views/finance/capital/futures'),
      name: '期货',
      hidden:true,
      meta: { title: '期货' }
    },
    {
      path: 'option',
      component: () => import('@/views/finance/capital/option'),
      name: '期权',
      hidden:true,
      meta: { title: '期权' }
    },
    {
      path: 'securities',
      component: () => import('@/views/finance/capital/securities'),
      name: '股票',
      hidden:true,
      meta: { title: '股票' }
    },
    {
      path: 'house',
      component: () => import('@/views/finance/capital/house'),
      name: '房地产',
      hidden:true,
      meta: { title: '房地产' }
    },
    {
      path: 'bond',
      component: () => import('@/views/finance/capital/bond'),
      name: '债券',
      hidden:true,
      meta: { title: '债券' }
    },
    {
      path: 'company',
      component: () => import('@/views/finance/capital/company'),
      name: '公司',
      hidden:true,
      meta: { title: '公司' }
    },
    {
      path: 'bank',
      component: () => import('@/views/finance/bank/bank'),
      name: '银行',
      hidden:true,
      meta: { title: '银行' }
    },
    {
      path: 'bank-add',
      component: () => import('@/views/finance/bank/bank-add'),
      name: '银行卡',
      hidden:true,
      meta: { title: '银行卡' }
    },
    {
      path: 'bank-detail',
      component: () => import('@/views/finance/bank/bank-detail'),
      name: '银行卡',
      hidden:true,
      meta: { title: '银行卡' }
    },
    {
      path: 'bankcard',
      component: () => import('@/views/finance/bankcard/bankcard'),
      name: '银行',
      hidden:true,
      meta: { title: '银行' }
    },
    {
      path: 'bankcard-add',
      component: () => import('@/views/finance/bankcard/bankcard-add'),
      name: '银行卡',
      hidden:true,
      meta: { title: '银行卡' }
    },
    {
      path: 'bankcard-detail',
      component: () => import('@/views/finance/bankcard/bankcard-detail'),
      name: '银行卡',
      hidden:true,
      meta: { title: '银行卡' }
    },
    {
      path: 'settlement',
      component: () => import('@/views/finance/settlement/settlement'),
      name: '结算方式',
      hidden:true,
      meta: { title: '结算方式' }
    },
    {
      path: 'settlement-add',
      component: () => import('@/views/finance/settlement/settlement-add'),
      name: '资产',
      hidden:true,
      meta: { title: '资产' }
    },
    {
      path: 'settlement-detail',
      component: () => import('@/views/finance/settlement/settlement-detail'),
      name: '资产',
      hidden:true,
      meta: { title: '资产' }
    },
    {
      path: 'liabilities',
      component: () => import('@/views/finance/liabilities/liabilities'),
      name: '债务',
      hidden:true,
      meta: { title: '债务' }
    },
    {
      path: 'liabilities-add',
      component: () => import('@/views/finance/liabilities/liabilities-add'),
      name: '债务',
      hidden:true,
      meta: { title: '债务' }
    },
    {
      path: 'liabilities-detail',
      component: () => import('@/views/finance/liabilities/liabilities-detail'),
      name: '债务',
      hidden:true,
      meta: { title: '债务' }
    }
  ]
}

export default financeRouter
